package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.LevelEntity;
import com.dragon.modules.yuegou.enums.member.LevelCycle;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 会员等级表模型类
 *
 * @author pbuilder generated
 * @date 2019-03-20 15:32:35
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Level extends LevelEntity {

	/**
	 * 构造一个空会员等级表模型对象
	 */
	public Level(){
		super();
	}

	/**
	 * 依据实体对象的信息构造一个会员等级表模型对象
	 *
	 * @param entity 实体对象
	 */
	public Level(LevelEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员等级表模型对象
	 *
	 * @param other 其它对象
	 */
	public Level(Level other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 *
	 * @param id
	 * @return 当前对象
	 */
    public Level id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 *
	 * @param busdId
	 * @return 当前对象
	 */
    public Level busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getName() {
    	return name;
    }

    /**
	 * 设置会员名称
	 *
	 * @param name 会员名称
	 * @return 当前对象
	 */
    public Level name(String name) {
    	this.name = name;
    	return this;
    }

	@Override
	public LevelCycle getCycle() {
    	return cycle;
    }

    /**
	 * 设置[枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH
	 *
	 * @param cycle [枚举]重置周期：0-当年-THATYEAR、1-当月-THATMONTH、2-滚动年-ROLLINGYEAR、3-滚动月-ROLLINGMONTH
	 * @return 当前对象
	 */
    public Level cycle(LevelCycle cycle) {
    	this.cycle = cycle;
    	return this;
    }

	@Override
	public String getImg() {
    	return img;
    }

    /**
	 * 设置
	 *
	 * @param img
	 * @return 当前对象
	 */
    public Level img(String img) {
    	this.img = img;
    	return this;
    }

	@Override
	public Integer getPoints() {
    	return points;
    }

    /**
	 * 设置等级需要累计积分
	 *
	 * @param points 等级需要累计积分
	 * @return 当前对象
	 */
    public Level points(Integer points) {
    	this.points = points;
    	return this;
    }

	@Override
	public Integer getOriginalPoints() {
    	return originalPoints;
    }

    /**
	 * 设置原始积分
	 *
	 * @param originalPoints 原始积分
	 * @return 当前对象
	 */
    public Level originalPoints(Integer originalPoints) {
    	this.originalPoints = originalPoints;
    	return this;
    }

	@Override
	public Integer getObtainPoints() {
    	return obtainPoints;
    }

    /**
	 * 设置获得积分
	 *
	 * @param obtainPoints 获得积分
	 * @return 当前对象
	 */
    public Level obtainPoints(Integer obtainPoints) {
    	this.obtainPoints = obtainPoints;
    	return this;
    }

	@Override
	public String getRights() {
    	return rights;
    }

    /**
	 * 设置会员权益
	 *
	 * @param rights 会员权益
	 * @return 当前对象
	 */
    public Level rights(String rights) {
    	this.rights = rights;
    	return this;
    }


	@Override
	public String getRightsImg() {
		return rightsImg;
	}

	/**
	 * 设置会员权益图片
	 *
	 * @param rightsImg 会员权益图片
	 * @return 当前对象
	 */
	public Level rightsImg(String rightsImg) {
		this.rightsImg = rightsImg;
		return this;
	}

	@Override
	public Integer getSerialNumber() {
    	return serialNumber;
    }

    /**
	 * 设置等级编号
	 *
	 * @param serialNumber 等级编号
	 * @return 当前对象
	 */
    public Level serialNumber(Integer serialNumber) {
    	this.serialNumber = serialNumber;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 *
	 * @param createdTime
	 * @return 当前对象
	 */
    public Level createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 *
	 * @param createdBy
	 * @return 当前对象
	 */
    public Level createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 *
	 * @param modifiedTime
	 * @return 当前对象
	 */
    public Level modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 *
	 * @param modifiedBy
	 * @return 当前对象
	 */
    public Level modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 *
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public Level del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 *
	 * @param delBy
	 * @return 当前对象
	 */
    public Level delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 *
	 * @param delTime
	 * @return 当前对象
	 */
    public Level delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

}
